package com.woniuxy.commentclient.client;

import com.woniuxy.commentclient.client.dto.UserInfoDto;
import com.woniuxy.core.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("user-server")
public interface UserFeignClient {

    @GetMapping("/user/userInfo/findUserById")
    public Result<UserInfoDto> findUserById(@RequestParam("userId") Integer userId);

}
